package com.example.customview.titlebar

import com.alibaba.android.arouter.facade.annotation.Route
import com.android.baselibrary.base.BaseDBFragment
import com.example.customview.R
import com.example.customview.arouter.CustomArouter
import com.example.customview.databinding.FragmentTitleBarBinding

/**
 * 自定义titleBar
 */
@Route(path = CustomArouter.CUSTOM_TITLE_BAR_FRAGMENT)
class TitleBarFragment:BaseDBFragment<FragmentTitleBarBinding>(R.layout.fragment_title_bar) {
    override fun initView() {
       mBinding.titleBar.setLeftListener {
           activity?.finish()
       }
    }
}